//
//  WeatherGetter.h
//  GolfFriend
//
//  Created by Vescky on 13-11-29.
//  Copyright (c) 2013年 vescky.org. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import "WetherInfoVO.h"

@protocol WeatherInfoDelegate <NSObject>

- (void)WeatherInfoDidRefreshed;

@end
@interface WeatherGetter : NSObject {
    bool isBusy;
}

@property (nonatomic,strong) WetherInfoVO *wInfo;
@property (nonatomic,assign) id <WeatherInfoDelegate> delegate;

+ (id)shareWeatherGetter;

- (bool)isBusy;//是否处于忙碌状态

//读取储存的天气
- (WetherInfoVO*)getWeather;

//更新天气
- (WetherInfoVO*)refreshWeather;

- (NSString*)getCityIdViaIP ;

- (void)getWeatherByCityId:(NSString*)cityId;

//- (NSString*)getWeatherIcon:(NSString*)w ;

@end
